package com.jiangcheng.service.impl;

import com.jiangcheng.service.EhCacheService;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;

/**
 * 类名称：EhCacheServiceImpl<br>
 * 类描述：<br>
 * 创建时间：2019年01月17日<br>
 *
 * @author jiangcheng
 * @version 1.0.0
 */
@Service
public class EhCacheServiceImpl implements EhCacheService {


    @Override
    @Cacheable(value="cacheTest",key="#param")
    public String getTimestamp(String param) {
        Long timestamp = System.currentTimeMillis();
        return timestamp.toString();
    }
}
